-
Notifications
You must be signed in to change notification settings - Fork 936
feat(module)!: use moduleDependencies to manipulate options
#4927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@danielroe Don't we need to update to |
|
oh, quite right. I'll update this PR once 4.1.2 is out. |
moduleDependencies to manipulate options
3f0c24a to
c9ba808
Compare
commit: |
moduleDependencies to manipulate optionsmoduleDependencies to manipulate options
| } | ||
|
|
||
| if ((hasNuxtModule('@nuxt/content') || options.content)) { | ||
| if (options.content || hasNuxtModule('@nuxt/content')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've swapped these in every instance as checking options.content is always going to be more performant than calling hasNuxtModule
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
benjamincanac
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @danielroe β€οΈ
|
Hey @danielroe Will this resolve the strict order issue for nuxt/content & nuxt/ui? Do you want me to create issue for tracking auto creating main.css and including it in nuxt.config when creating new nuxt project and selecting Nuxt UI as module? cc: @benjamincanac |
π Linked issue
β Type of change
π Description
this uses the new module dependencies feature in https://github.com/nuxt/nuxt/releases/tag/v4.1.0 to specify options for other modules (and require them).
Schema + kit are pinned because this repo is using shamefully-hoist, and the wrong version of each of these might be hoisted.(We ultimately need to resolve that issue, but it's for another time.)I'm opening this as a draft because it's very possible that something might break.π Checklist